// jackspa, a dirt-simple LADSPA host for JACK
// Copyright (C) 2007 Nick Thomas
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation; the terms of
// any later version are NOT APPLICABLE.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

#ifndef JACKSPA_HPP
#define JACKSPA_HPP

#include <jack/jack.h>
#include <ladspa.h>

typedef struct {
    char *client_name;
    jack_client_t *jack_client;
    jack_port_t **ports;
    int num_control_ports;
    float *control_port_values;
    float *control_port_buffer;
    LADSPA_Descriptor *descriptor;
    LADSPA_Handle handle;
} state_t;

void jackspa_init(state_t *state, int argc, char **argv);

#endif
